<script setup lang="ts">
import CartMain from './components/CartMain.vue'
import { onReady, onShow } from '@dcloudio/uni-app'
import { ref } from 'vue'
let cartMain = ref();
// 初始化调用: 页面显示触发
onShow(()=>{
  if (cartMain.value)
    cartMain.value.initPage()
});
onReady(()=>{
  cartMain.value.initPage()
})
</script>

<template>
  <CartMain ref="cartMain" />
</template>

<style lang="scss">
page {
  height: 100%;
}
</style>
